//
//  HCViewController.m
//  
//
//  Created by 北风 on 14-10-21.
//
//

#import "HCViewController.h"

@interface HCViewController ()

@end

@implementation HCViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self CreatTablreView];
}


#pragma mark - 创建TableView---------------------
-(void)CreatTablreView{
    
    _CommentTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 480) style:UITableViewStyleGrouped];
    _CommentTable.delegate = self;
    _CommentTable.dataSource = self;
    [self.view addSubview:_CommentTable];
    
    
}

#pragma mark - 返回多少个cell----------------------------
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    
    
    return 100;
}


#pragma mark - 返回多少个section------------------------
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableVie{
    
    return 3;
}


#pragma mark - 返回行高－－－－－－－－－－－－
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
    
    return 450;
}



#pragma mark - 创建cell--------------------------------
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    static NSString *strinb = @"sldkjf";
    CommentTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strinb];
    if (!cell) {
        
        cell = [[[CommentTableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:strinb]autorelease];
        
    }
    
    return cell;
    
}




/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
